package com.wiloon.java8x.io.file;


import java.io.*;

public class ReadWrite {
    static void main(String args[]) {
        try {


            String pathname = "D:\\twitter\\13_9_6\\dataset\\en\\input.txt";
            File filename = new File(pathname);
            InputStreamReader reader = new InputStreamReader(
                    new FileInputStream(filename));
            BufferedReader br = new BufferedReader(reader);
            String line = "";
            line = br.readLine();
            while (line != null) {
                line = br.readLine();
            }


            File writename = new File(".\\result\\en\\output.txt");
            writename.createNewFile();
            BufferedWriter out = new BufferedWriter(new FileWriter(writename));
            out.write("test");
            out.flush();
            out.close();

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}